package com.example.design.template.demo2;

public class IUserDAOImp implements  IUserdao{
    @Override
    public void getAll() {
        /**
         * 面向接口编程
         */
        JdbcTemp.excute(()->{
            System.out.println("select * from table");
        });
    }

    @Override
    public void delByid(Integer id) {
            JdbcTemp.excute(()->{
                System.out.println("delete * from  table where id="+id);
            });
    }
}
